package com.bjpowernode.web.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author 麦翔盛
 * @ClassName: JdwxSmsConfig
 * @Package: com.bjpowernode.web.config
 * @description: 京东万象 短信验证码 配置类
 * @date 2022/5/20 17:20
 */

@Component
@ConfigurationProperties(prefix = "jdwx.sms")
public class JdwxSmsConfig {
    /**
     * 第三方接口地址
     */
    private String url;
    /**
     * 注册文本
     */
    private String regText;
    /**
     * 登录文本
     */
    private String logText;
    /**
     * 秘钥
     */
    private String appKey;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRegText() {
        return regText;
    }

    public void setRegText(String regText) {
        this.regText = regText;
    }

    public String getLogText() {
        return logText;
    }

    public void setLogText(String logText) {
        this.logText = logText;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    @Override
    public String toString() {
        return "JdwxSmsConfig{" +
                "url='" + url + '\'' +
                ", regText='" + regText + '\'' +
                ", logText='" + logText + '\'' +
                ", appKey='" + appKey + '\'' +
                '}';
    }
}
